home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9109 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1020 b 

  1. Path: druid.borland.com!shadow!xmsb
  2. From: xmsb@shadow.borland.com (Maurice S. Barnum)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Fahrenheight to Celsius?
  5. Date: 28 Feb 96 18:15:41 GMT
  6. Organization: Borland Intl
  7. Message-ID: <xmsb.825531341@shadow>
  8. References: <4fvthq$2bl@newserv.agcs.com> <4fra3q$ddt@newsbf02.news.aol.com> <1996Feb26.060213.23285@lafn.org> <4h1v08$eks@druid.borland.com>
  9. NNTP-Posting-Host: shadow.borland.com
  10.  
  11. pete@borland.com (Pete Becker) writes:
  12.  
  13. >In article <1996Feb26.060213.23285@lafn.org>, an234@lafn.org says...
  14. >>
  15. >>F = C*(9/5) +32
  16. >>C = (F-32)*(5/9)
  17.  
  18. >He was better off without this answer, which is wrong.
  19.  
  20.     my favorite conversion equations, which i learned from
  21.     reading an article by isaac asimov, is not only simpler,
  22.     but avoids having to worry as much about the "obvious"
  23.     problem when written as C++:
  24.  
  25. F = (C + 40) / 1.8 - 40
  26. C = (F + 40) * 1.8 - 40
  27.  
  28.     for reasons i've never understood, these are not the
  29.     equations one will find in most books.
  30.  
  31.  --xmsb
  32.  xmsb@borland.com
  33.